package com.example.demo.design.decorator.solution;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 15:42 2020/12/24
 * @Modified By:
 */
public class Client {

    public static void main(String args[]) {
        Component component, componentSB; // 使用抽象构件定义
        component = new Window(); // 定义具体构件
        componentSB = new ScrollBarDecorator(component); // 定义装饰后的构件
        componentSB.display();
    }
}
